<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Hello post</title>
</head>
<body>


<p>1)<span id="result" style="color: blue; ">abi init.....</span></p>

<hr/>
<p><span id="debug" style="color: #006600; ">Debug.....</span></p>

<script src="./jquery-3.6.4.min.js"></script>
<script src="../utils/net_utils.js"></script>
<script>
    function debug(txt) {
        document.getElementById("debug").innerText += "\n" + txt;
    }
    function on_response(data,status){
        console.log("on_response:"+data)
        restext = JSON.stringify(data)
        console.log("restext",restext)
        $("#result").text(restext);
    }

    var url = "http://localhost:8000/info/?name=abc";
    var url = "http://localhost:8000/rpc/";
    var data = {'cmd': 'getBlockNumber', 'params': []};
    doPost(url,data,on_response)
    setInterval ("doPost(url,data,on_response)", 2000);

</script>

</body>
</html>